/**
 * user
 * @param  {[type]} sequelize [description]
 * @param  {[type]} DataTypes [description]
 * @return model
 */
export default (sequelize, DataTypes) => sequelize.define('user', {
  id: {
    type: DataTypes.UUID,
    primaryKey: true
  },
  username: DataTypes.STRING(100),
  age: DataTypes.STRING(10),
  password: DataTypes.STRING(32),
  name: DataTypes.STRING(100),
  phone: DataTypes.STRING(50),
  address: DataTypes.STRING(100),
  gender: DataTypes.STRING(2),
  idcard: DataTypes.STRING(20),
  desc: DataTypes.STRING(200),
  type: DataTypes.INTEGER(2)
})
